package com.demo.book_manage.DAO;

import com.demo.book_manage.POJO.Book;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * book的持久层，用于与数据库交互
 *
 * @author 梁灿鑫
 * @since 2021-01-28
 */
@Repository
public interface BookDAO extends JpaRepository<Book, Long> {
    List<Book> findBookByName(String name);
    void removeBookByName(String name);
}
